package com.ruoyi.etp.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 员工设备使用情况对象 etp_recording_device_stats
 * 
 * @author xmj
 * @date 2025-09-12
 */
public class EtpRecordingDeviceStats extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long id;

    /** 员工id */
    @Excel(name = "员工id")
    private Long userId;

    /** 所属组织 */
    @Excel(name = "所属组织")
    private String deptId;

    /** 录音次数 */
    @Excel(name = "录音次数")
    private Long recordingCount;

    /** 已上传录音数量 */
    @Excel(name = "已上传录音数量")
    private Long uploadedRecordings;

    /** 未上传录音数量 */
    @Excel(name = "未上传录音数量")
    private Long notUploadedRecordings;

    /** 设备在线天数 */
    @Excel(name = "设备在线天数")
    private Long onlineDays;

    /** 录音时长(小时) */
    @Excel(name = "录音时长(小时)")
    private BigDecimal recordingDurationHours;

    /** 首次开机时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "首次开机时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date firstBootTime;

    /** 最低出工电量(%) */
    @Excel(name = "最低出工电量(%)")
    private Long minWorkBatteryPercent;

    /** 平均出工电量(%) */
    @Excel(name = "平均出工电量(%)")
    private Long avgWorkBatteryPercent;

    /** 当前设备版本号 */
    @Excel(name = "当前设备版本号")
    private String currentDeviceVersion;

    /** 创建人 */
    @Excel(name = "创建人")
    private String createdBy;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdTime;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }

    public void setDeptId(String deptId) 
    {
        this.deptId = deptId;
    }

    public String getDeptId() 
    {
        return deptId;
    }

    public void setRecordingCount(Long recordingCount) 
    {
        this.recordingCount = recordingCount;
    }

    public Long getRecordingCount() 
    {
        return recordingCount;
    }

    public void setUploadedRecordings(Long uploadedRecordings) 
    {
        this.uploadedRecordings = uploadedRecordings;
    }

    public Long getUploadedRecordings() 
    {
        return uploadedRecordings;
    }

    public void setNotUploadedRecordings(Long notUploadedRecordings) 
    {
        this.notUploadedRecordings = notUploadedRecordings;
    }

    public Long getNotUploadedRecordings() 
    {
        return notUploadedRecordings;
    }

    public void setOnlineDays(Long onlineDays) 
    {
        this.onlineDays = onlineDays;
    }

    public Long getOnlineDays() 
    {
        return onlineDays;
    }

    public void setRecordingDurationHours(BigDecimal recordingDurationHours) 
    {
        this.recordingDurationHours = recordingDurationHours;
    }

    public BigDecimal getRecordingDurationHours() 
    {
        return recordingDurationHours;
    }

    public void setFirstBootTime(Date firstBootTime) 
    {
        this.firstBootTime = firstBootTime;
    }

    public Date getFirstBootTime() 
    {
        return firstBootTime;
    }

    public void setMinWorkBatteryPercent(Long minWorkBatteryPercent) 
    {
        this.minWorkBatteryPercent = minWorkBatteryPercent;
    }

    public Long getMinWorkBatteryPercent() 
    {
        return minWorkBatteryPercent;
    }

    public void setAvgWorkBatteryPercent(Long avgWorkBatteryPercent) 
    {
        this.avgWorkBatteryPercent = avgWorkBatteryPercent;
    }

    public Long getAvgWorkBatteryPercent() 
    {
        return avgWorkBatteryPercent;
    }

    public void setCurrentDeviceVersion(String currentDeviceVersion) 
    {
        this.currentDeviceVersion = currentDeviceVersion;
    }

    public String getCurrentDeviceVersion() 
    {
        return currentDeviceVersion;
    }

    public void setCreatedBy(String createdBy) 
    {
        this.createdBy = createdBy;
    }

    public String getCreatedBy() 
    {
        return createdBy;
    }

    public void setCreatedTime(Date createdTime) 
    {
        this.createdTime = createdTime;
    }

    public Date getCreatedTime() 
    {
        return createdTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("deptId", getDeptId())
            .append("recordingCount", getRecordingCount())
            .append("uploadedRecordings", getUploadedRecordings())
            .append("notUploadedRecordings", getNotUploadedRecordings())
            .append("onlineDays", getOnlineDays())
            .append("recordingDurationHours", getRecordingDurationHours())
            .append("firstBootTime", getFirstBootTime())
            .append("minWorkBatteryPercent", getMinWorkBatteryPercent())
            .append("avgWorkBatteryPercent", getAvgWorkBatteryPercent())
            .append("currentDeviceVersion", getCurrentDeviceVersion())
            .append("createdBy", getCreatedBy())
            .append("createdTime", getCreatedTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
